﻿

<html lang="zh-cn">
<head>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
    <link rel="icon" href="/favicon.ico">
    <title>敏捷开发框架Core - 登录页面</title>

</head>
<body>
    <style>
        /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */

        ul, li {
            list-style: none
        }

        a {
            text-decoration: none
        }

        html {
            line-height: 1.15;
            -ms-text-size-adjust: 100%;
            -webkit-text-size-adjust: 100%
        }

        body {
            margin: 0
        }

        article, aside, footer, header, nav, section {
            display: block
        }

        h1 {
            font-size: 2em;
            margin: .67em 0
        }

        figcaption, figure, main {
            display: block
        }

        figure {
            margin: 1em 40px
        }

        hr {
            box-sizing: content-box;
            height: 0;
            overflow: visible
        }

        pre {
            font-family: monospace,monospace;
            font-size: 1em
        }

        a {
            background-color: transparent;
            -webkit-text-decoration-skip: objects
        }

        abbr[title] {
            border-bottom: 0;
            text-decoration: underline;
            text-decoration: underline dotted
        }

        b, strong {
            font-weight: inherit
        }

        b, strong {
            font-weight: bolder
        }

        code, kbd, samp {
            font-family: monospace,monospace;
            font-size: 1em
        }

        dfn {
            font-style: italic
        }

        mark {
            background-color: #ff0;
            color: #000
        }

        small {
            font-size: 80%
        }

        sub, sup {
            font-size: 75%;
            line-height: 0;
            position: relative;
            vertical-align: baseline
        }

        sub {
            bottom: -0.25em
        }

        sup {
            top: -0.5em
        }

        audio, video {
            display: inline-block
        }

            audio:not([controls]) {
                display: none;
                height: 0
            }

        img {
            border-style: none
        }

        svg:not(:root) {
            overflow: hidden
        }

        button, input, optgroup, select, textarea {
            font-family: sans-serif;
            font-size: 100%;
            line-height: 1.15;
            margin: 0
        }

        button, input {
            overflow: visible
        }

        button, select {
            text-transform: none
        }

        button, html [type="button"], [type="reset"], [type="submit"] {
            -webkit-appearance: button
        }

            button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner {
                border-style: none;
                padding: 0
            }

            button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring {
                outline: 1px dotted ButtonText
            }

        fieldset {
            padding: .35em .75em .625em
        }

        legend {
            box-sizing: border-box;
            color: inherit;
            display: table;
            max-width: 100%;
            padding: 0;
            white-space: normal
        }

        progress {
            display: inline-block;
            vertical-align: baseline
        }

        textarea {
            overflow: auto
        }

        [type="checkbox"], [type="radio"] {
            box-sizing: border-box;
            padding: 0
        }

        [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button {
            height: auto
        }

        [type="search"] {
            -webkit-appearance: textfield;
            outline-offset: -2px
        }

            [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration {
                -webkit-appearance: none
            }

        ::-webkit-file-upload-button {
            -webkit-appearance: button;
            font: inherit
        }

        details, menu {
            display: block
        }

        summary {
            display: list-item
        }

        canvas {
            display: inline-block
        }

        template {
            display: none
        }

        [hidden] {
            display: none
        }

        .lr-show {
            display: inline-block !important
        }

        .lr-hide {
            display: none !important
        }

        *, *:before, *:after {
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box
        }

        a {
            text-decoration: none;
            color: #333
        }

        li {
            outline: 0
        }

        ul, li {
            list-style: none
        }

        .lr-login-input input {
            outline: 0;
            border: 1px solid #e5e5e5;
            -webkit-appearance: none
        }

        input:-moz-placeholder, textarea:-moz-placeholder {
            color: #666;
            font-size: 12px
        }

        input:-ms-input-placeholder, textarea:-ms-input-placeholder {
            color: #666;
            font-size: 12px
        }

        input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
            color: #666;
            font-size: 12px
        }

        html, body {
            overflow-x: hidden;
            font-family: "Open Sans",Arial,"Hiragino Sans GB","Microsoft YaHei",微软雅黑,STHeiti,"WenQuanYi Micro Hei",SimSun,sans-serif
        }

        div, p, h1, h2, h3, h4, h5, h6, span, input, select, img, ul, li, ol, dl, dd, dt {
            margin: 0;
            padding: 0;
    </style>
    <style>
        html {
            position: relative;
            height: 100%;
            width: 100%;
        }

        body {
            position: relative;
            height: 100%;
            width: 100%;
            /*background: #F8F8F8 url("/Content/images/Login/defaultbg.png") no-repeat;*/
            /*background-size: 100% 50%;*/
        }

            body > img {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 50%;
                z-index: 0;
            }

        input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
            -webkit-box-shadow: 0 0 0px 1000px white inset;
            -webkit-text-fill-color: #757575;
        }

        input:disabled {
            background-color: #fff;
        }

        .lr-login-body {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 880px;
            height: 464px;
            margin-top: -269px;
            margin-left: -440px;
        }

        .lr-login-logo {
            position: relative;
            height: 79px;
            width: 100%;
            text-align: center;
        }

            .lr-login-logo > img {
                display: block;
                position: absolute;
                left: 50%;
                top: 0;
                margin-left: -219px;
            }

            .lr-login-logo .lr-login-title {
                font-family: PingFangSC-Regular;
                vertical-align: baseline;
                font-size: 24px;
                color: #ffffff;
                position: absolute;
                left: 50%;
                top: 3px;
                margin-left: 5px;
            }

                .lr-login-logo .lr-login-title:before {
                    content: '';
                    display: block;
                    position: absolute;
                    left: -16px;
                    top: 0px;
                    width: 2px;
                    height: 25px;
                    background-color: #fff;
                }


        .lr-login-middle {
            position: relative;
            width: 100%;
            height: 380px;
            background: #fff;
            background-position: 36px 52px;
            box-shadow: 0 0 11px 13px rgba(0,0,0,0.02);
            border-radius: 5px;
        }

            .lr-login-middle > img {
                position: absolute;
                left: 36px;
                top: 51px;
            }

            .lr-login-middle .lr-login-main {
                position: absolute;
                top: 0;
                right: 0;
                z-index: 10;
                background: #FFFFFF;
                width: 451px;
                height: 100%;
                border-radius: 10px;
            }

                .lr-login-middle .lr-login-main:before {
                    content: '';
                    position: absolute;
                    left: 0;
                    margin-top: 38px;
                    width: 1px;
                    height: 304px;
                    background: #e5e5e5;
                }

        .lr-login-bypsw {
            position: relative;
            width: 100%;
            height: 100%;
            padding: 60px 0 52px 61px;
        }

        .lr-login-toCode {
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
            width: 60px;
            height: 60px;
        }

        .lr-login-input {
            position: relative;
            width: 100%;
            height: 40px;
            margin-bottom: 20px;
        }

            .lr-login-input input {
                display: block;
                width: 320px;
                text-indent: 31px;
                height: 40px;
                line-height: 40px;
                outline: none;
                font-family: PingFangSC-Regular;
                font-size: 12px;
                color: #666;
                opacity: 0.99;
                background: #FFFFFF;
                border: 1px solid #CCCCCC;
                border-radius: 2px;
            }

            .lr-login-input > .inp_icon {
                position: absolute;
                left: 10px;
                top: 14.5px;
                z-index: 10;
            }

            .lr-login-input input:focus {
                opacity: 0.99;
                background: #FFFFFF;
                border: 1px solid #3298DC;
                border-radius: 2px;
            }

        .lr-login-reg input {
            width: 220px;
            height: 40px;
        }

        .lr-login-reg .code {
            width: 82px;
            height: 35px;
            cursor: pointer;
            position: absolute;
            right: 74px;
            bottom: 4px;
        }

        .lr-login-bycode {
            display: none;
        }

            .lr-login-bycode .lr-login-info img {
                width: 191px;
                height: 191px;
                margin-top: 68px;
                margin-left: 126px;
            }

            .lr-login-bycode .lr-login-info p {
                font-family: PingFangSC-Regular;
                font-size: 16px;
                margin-top: 20px;
                color: #333333;
                width: 100%;
                padding-right: 5px;
                text-align: center;
            }



        .error_info {
            font-family: PingFangSC-Regular;
            position: absolute;
            font-size: 12px;
            color: #ED3232;
            top: 32px;
            display: none;
        }

        .noreg {
            padding-top: 90px;
        }

            .noreg .lr-login-reg {
                display: none;
            }

            .noreg .error_info {
                top: 62px;
            }


        .lr-login-btn {
            display: inline-block;
            text-align: center;
            cursor: pointer;
            background: #3298DC;
            border: 1px solid #3298DC;
            border-radius: 2px;
            font-family: PingFangSC-Regular;
            font-size: 16px;
            color: #FFFFFF;
            height: 36px;
            line-height: 36px;
            width: 320px;
            text-align: center;
            margin-top: 25px;
        }

            .lr-login-btn:hover {
                background: #268fe2;
            }

            .lr-login-btn.active {
                cursor: default;
                border: 1px solid #bdbdbd;
                z-index: 10;
            }

        .lr-login-version {
            font-size: 12px;
            color: #3298DC;
            margin-top: 15px;
            text-align: right;
            padding-right: 71px;
        }

        .lr-login-footer {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: 280px;
            margin-left: -180px;
            text-align: center;
            line-height: 28px;
        }

            .lr-login-footer p {
                font-family: PingFangSC-Regular;
                font-size: 12px;
                color: #333333;
            }
    </style>
    <img src="/img/login/default_bg.png" />
    <div class="lr-login-body">
        <div class="lr-login-logo">
            <img src="/img/login/logow.png" alt="">
            <div class="lr-login-title">
                敏捷开发框架系统平台Core版
            </div>
        </div>
        <div class="lr-login-middle">
            <img src="/img/login/default_left.png" />
            <!--登录框 正常登录-->
            <div class="lr-login-main lr-login-normal">

                <!--密码登录-->
                <div class="lr-login-bypsw noreg">
                    <div class="error_info">*&nbsp;<span>密码不正确</span></div>
                    <img class="lr-login-toCode" login-access="psw" src="/img/login/default_code.png" alt="">
                    <div class="lr-login-input">
                        <img class="inp_icon" src="/img/login/default_account0.png" alt=""> <input id="lr_username" type="text" placeholder="手机号/帐号">
                    </div>
                    <div class="lr-login-input">
                        <img class="inp_icon" src="/img/login/default_psw0.png" alt=""><input id="lr_password" type="password" placeholder="密码">
                        <span id="psw_change"></span>
                    </div>
                    <div class="lr-login-btn" id="lr_login_btn"><span>登录</span></div>
                    <div class="lr-login-version">版本号：CORE V1.0.0</div>
                </div>

                <!--二维码登录-->
                <div class="lr-login-bycode">

                    <img class="lr-login-toCode" src="/img/login/windos_pc.png" alt="">
                    <div class="lr-login-info" id="wechatimg">
                        <img src="/img/login/qrcode.png" alt="">
                        <p>微信扫一扫 获体验资格</p>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="lr-login-footer"> <p>Copyright © 2019-present 力软信息技术(苏州)有限公司 版权所有</p><p>官方网站：https://www.learun.cn</p></div>

    <script src="/js/jquery-1.10.2.min.js"></script>
    <script src="/js/jquery.md5.min.js"></script>
    <script src="/js/base64.min.js"></script>
    <script type="text/javascript">
        function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" };
        $.rootUrl = 'http//localhost:44382';


        (function ($) {
    "use strict";
    var lrPage = {
        init: function () {
            var error = request('error');
            if (error == "ip") {
                lrPage.tip("登录IP限制");
                if (history && history.pushState) {
                    history.pushState({}, '敏捷开发框架 - 登录页面', top.$.rootUrl + '/Login/Index');
                }
            }
            else if (error == "time") {
                lrPage.tip("登录时间限制");
                if (history && history.pushState) {
                    history.pushState({}, '敏捷开发框架 - 登录页面', top.$.rootUrl + '/Login/Index');
                }
            }
            else if (error == "other") {
                lrPage.tip('当前浏览器有其他账号登录了，请重新登录！');
                if (history && history.pushState) {
                    history.pushState({}, '敏捷开发框架 - 登录页面', top.$.rootUrl + '/Login/Index');
                }
            }

            if (window.location.href != top.window.location.href) {
                top.window.location.href = window.location.href;
            }
            var isIE = !!window.ActiveXObject;
            var isIE6 = isIE && !window.XMLHttpRequest;
            if (isIE6) {
                window.location.href = $.rootUrl + "/Error/ErrorBrowser";
            }

            lrPage.bind();
        },
        bind: function () {
            // 回车键
            document.onkeydown = function (e) {
                e = e || window.event;
                if ((e.keyCode || e.which) == 13) {
                    $('#lr_login_btn').trigger('click');
                }
            }
            //输入框获取焦点
            $('.lr-login-input input').on('focus', function () {
                var src = $(this).prev().attr('src');
                $(this).prev().attr('src', src.replace(/0.png$/, '1.png'));
            }).on('blur', function () {
                var src = $(this).prev().attr('src');
                $(this).prev().attr('src', src.replace(/1.png$/, '0.png'));
            });


            //登录方式点击
            $('.lr-login-toCode').click(function () {
                var _this = $(this);
                if (_this.attr('login-access') == 'psw') {
                    $('.lr-login-bycode').show();
                    $('.lr-login-bypsw').hide();

                } else {
                    $('.lr-login-bypsw').show();
                    $('.lr-login-bycode').hide();

                }
            })

            // 登录按钮事件
            $("#lr_login_btn").on('click', function () {
                lrPage.login();
            });
        },
        login: function () {
            lrPage.tip();

            var $username = $("#lr_username"), $password = $("#lr_password");
            var username = $.trim($username.val()), password = $.trim($password.val());

            if (username == "") {
                lrPage.tip('请输入账户');
                $username.focus();
                return false;
            }
            if (password == "") {
                lrPage.tip('请输入密码');
                $password.focus();
                return false;
            }
            password = $.md5(password);
            lrPage.logining(true);
            $.ajax({
                url: "http://localhost:44382/Users/Login",//$.rootUrl + "/Users/Login",
                data: { account: username, password: password },
                type: "post",
                dataType: "json",
                success: function (res) {
                    if (res.code == 200) {
                        window.location.href = $.rootUrl + '/Home/Index?s=' + res.data; ///+username+"&t="+res.data;
                    }
                    else {
                        lrPage.logining(false);
                        lrPage.tip(res.info, true);
                    }
                }
            });
        },
        logining: function (isShow) {
            if (isShow) {
                $('input').attr('disabled', 'disabled');
                $("#lr_login_btn").addClass('active').attr('disabled', 'disabled').find('span').hide();
                $("#lr_login_btn").css('background', '#eeecec url(' + $.rootUrl + '/img/Login/loading.gif) no-repeat center 10px');
            }
            else {
                $('input').removeAttr('disabled');
                $("#lr_login_btn").removeClass('active').removeAttr('disabled').find('span').show();
                $("#lr_login_btn").css('background', '#268fe2');
            }
        },
        tip: function (msg) {
            var $tip = $('.error_info');
            $tip.hide();
            if (!!msg) {
                $tip.find('span').html(msg);
                $tip.show();
            }
        }
    };
    $(function () {
        lrPage.init();
    });
})(window.jQuery);
    </script>
</body>
</html>